#ifndef DOCKWIDGET_H
#define DOCKWIDGET_H
#include "ui_dockwidget.h"
#include <QPushButton>
#include <QDockWidget>
#include <QtSql>

namespace Ui {
    class DockWidget;
}

class DockWidget : public QDockWidget
{
    Q_OBJECT

public:
    explicit DockWidget(QWidget *parent = 0);
    ~DockWidget();

    // ONLY THE FIRST 99 CONNECTIONS ARE STORED IN THE DOCK WIDGET.
    int connectionNumber;
    QString connection_names[99];
    QPushButton *pushButtons[99];
    QLabel *labels[99];

    QList<QString> activeConnections;

    QSqlDatabase retrieverDatabase;

    int getSliderValue();
    Ui::DockWidget *ui;

signals:
    void connectPushed(QString conName);
    void disconnectPushed(QString conName);

public slots:
    void RetrieveAllConnectionNames();
    void ConnectIsPressed();

};

#endif // DOCKWIDGET_H
